Optimal. Leaf size=109 \[ -\frac {2^{m+\frac {1}{2}} m \cot (e+f x) (\csc (e+f x)+1)^{-m-\frac {1}{2}} (a \csc (e+f x)+a)^m \, _2F_1\left (\frac {1}{2},\frac {1}{2}-m;\frac {3}{2};\frac {1}{2} (1-\csc (e+f x))\right )}{f (m+1)}-\frac {\cot (e+f x) (a \csc (e+f x)+a)^m}{f (m+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 109, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {3798, 3828, 3827, 69} \[ -\frac {2^{m+\frac {1}{2}} m \cot (e+f x) (\csc (e+f x)+1)^{-m-\frac {1}{2}} (a \csc (e+f x)+a)^m \, _2F_1\left (\frac {1}{2},\frac {1}{2}-m;\frac {3}{2};\frac {1}{2} (1-\csc (e+f x))\right )}{f (m+1)}-\frac {\cot (e+f x) (a \csc (e+f x)+a)^m}{f (m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 69
Rule 3798
Rule 3827
Rule 3828
Rubi steps
\begin {align*} \int \csc ^2(e+f x) (a+a \csc (e+f x))^m \, dx &=-\frac {\cot (e+f x) (a+a \csc (e+f x))^m}{f (1+m)}+\frac {m \int \csc (e+f x) (a+a \csc (e+f x))^m \, dx}{1+m}\\ &=-\frac {\cot (e+f x) (a+a \csc (e+f x))^m}{f (1+m)}+\frac {\left (m (1+\csc (e+f x))^{-m} (a+a \csc (e+f x))^m\right ) \int \csc (e+f x) (1+\csc (e+f x))^m \, dx}{1+m}\\ &=-\frac {\cot (e+f x) (a+a \csc (e+f x))^m}{f (1+m)}+\frac {\left (m \cot (e+f x) (1+\csc (e+f x))^{-\frac {1}{2}-m} (a+a \csc (e+f x))^m\right ) \operatorname {Subst}\left (\int \frac {(1+x)^{-\frac {1}{2}+m}}{\sqrt {1-x}} \, dx,x,\csc (e+f x)\right )}{f (1+m) \sqrt {1-\csc (e+f x)}}\\ &=-\frac {\cot (e+f x) (a+a \csc (e+f x))^m}{f (1+m)}-\frac {2^{\frac {1}{2}+m} m \cot (e+f x) (1+\csc (e+f x))^{-\frac {1}{2}-m} (a+a \csc (e+f x))^m \, _2F_1\left (\frac {1}{2},\frac {1}{2}-m;\frac {3}{2};\frac {1}{2} (1-\csc (e+f x))\right )}{f (1+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.35, size = 126, normalized size = 1.16 \[ -\frac {\tan \left (\frac {1}{2} (e+f x)\right ) \left (\tan \left (\frac {1}{2} (e+f x)\right )+1\right )^{-2 m} (a (\csc (e+f x)+1))^m \left ((m+1) \, _2F_1\left (1-m,-2 m;2-m;-\tan \left (\frac {1}{2} (e+f x)\right )\right )+(m-1) \cot ^2\left (\frac {1}{2} (e+f x)\right ) \, _2F_1\left (-m-1,-2 m;-m;-\tan \left (\frac {1}{2} (e+f x)\right )\right )\right )}{2 f (m-1) (m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.58, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (a \csc \left (f x + e\right ) + a\right )}^{m} \csc \left (f x + e\right )^{2}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (a \csc \left (f x + e\right ) + a\right )}^{m} \csc \left (f x + e\right )^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 2.00, size = 0, normalized size = 0.00 \[ \int \left (\csc ^{2}\left (f x +e \right )\right ) \left (a +a \csc \left (f x +e \right )\right )^{m}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (a \csc \left (f x + e\right ) + a\right )}^{m} \csc \left (f x + e\right )^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (a+\frac {a}{\sin \left (e+f\,x\right )}\right )}^m}{{\sin \left (e+f\,x\right )}^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a \left (\csc {\left (e + f x \right )} + 1\right )\right )^{m} \csc ^{2}{\left (e + f x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________